package cn.belong.jk.entity;

import java.io.Serializable;

public class ExtCproductVO implements Serializable {

    private String id;  
    
    private ContractProduct contractProduct;//多对1  
    private Factory factory;//一对多  
      
    private String ctype;  
    private String productNo;  
    private String productImage;  
    private String productDesc;//货物描述  
    private Integer cnumber;//数量  
    private String packingUnit;//包装单位  
    private Double price;//单价  
    private Double amount;//总价  
    private String productRequest;//要求  
    private Integer orderNo;//排序号  
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public ContractProduct getContractProduct() {
		return contractProduct;
	}
	public void setContractProduct(ContractProduct contractProduct) {
		this.contractProduct = contractProduct;
	}
	public Factory getFactory() {
		return factory;
	}
	public void setFactory(Factory factory) {
		this.factory = factory;
	}
	public String getCtype() {
		return ctype;
	}
	public void setCtype(String ctype) {
		this.ctype = ctype;
	}
	public String getProductNo() {
		return productNo;
	}
	public void setProductNo(String productNo) {
		this.productNo = productNo;
	}
	public String getProductImage() {
		return productImage;
	}
	public void setProductImage(String productImage) {
		this.productImage = productImage;
	}
	public String getProductDesc() {
		return productDesc;
	}
	public void setProductDesc(String productDesc) {
		this.productDesc = productDesc;
	}
	public Integer getCnumber() {
		return cnumber;
	}
	public void setCnumber(Integer cnumber) {
		this.cnumber = cnumber;
	}
	public String getPackingUnit() {
		return packingUnit;
	}
	public void setPackingUnit(String packingUnit) {
		this.packingUnit = packingUnit;
	}
	public Double getPrice() {
		return price;
	}
	public void setPrice(Double price) {
		this.price = price;
	}
	public Double getAmount() {
		return amount;
	}
	public void setAmount(Double amount) {
		this.amount = amount;
	}
	public String getProductRequest() {
		return productRequest;
	}
	public void setProductRequest(String productRequest) {
		this.productRequest = productRequest;
	}
	public Integer getOrderNo() {
		return orderNo;
	}
	public void setOrderNo(Integer orderNo) {
		this.orderNo = orderNo;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ExtCproductVO other = (ExtCproductVO) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		return true;
	}
	@Override
	public String toString() {
		return "ExtCproductVO [id=" + id + ", contractProduct=" + contractProduct + ", factory=" + factory + ", ctype="
				+ ctype + ", productNo=" + productNo + ", productImage=" + productImage + ", productDesc=" + productDesc
				+ ", cnumber=" + cnumber + ", packingUnit=" + packingUnit + ", price=" + price + ", amount=" + amount
				+ ", productRequest=" + productRequest + ", orderNo=" + orderNo + "]";
	}
	public ExtCproductVO(String id, ContractProduct contractProduct, Factory factory, String ctype, String productNo,
			String productImage, String productDesc, Integer cnumber, String packingUnit, Double price, Double amount,
			String productRequest, Integer orderNo) {
		super();
		this.id = id;
		this.contractProduct = contractProduct;
		this.factory = factory;
		this.ctype = ctype;
		this.productNo = productNo;
		this.productImage = productImage;
		this.productDesc = productDesc;
		this.cnumber = cnumber;
		this.packingUnit = packingUnit;
		this.price = price;
		this.amount = amount;
		this.productRequest = productRequest;
		this.orderNo = orderNo;
	}
	public ExtCproductVO() {
		super();
	}
    
    
}
